package com.jzoom.zoom.admin.models;

import com.jzoom.zoom.dao.Page;

import java.util.List;
import java.util.Map;


public interface AdminModel<T extends Map<String, Object>> {
	Page<T> getPage( Map<String, Object> search );

    int put(Object id, Map<String, Object> data);
	int add(Map<String, Object> data) ;

    T get(Object id);

    int del(Object id);

    int putMulti(List<Object> ids, Map<String, Object> data) throws Throwable;

    int delMulti(Iterable<Object> ids);
}
